package cate.game.role.task.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTask;
import cate.game.role.Role;
import cate.game.role.task.RoleTask;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "主角个人任务数据 の 返回")
public class TaskDataResp implements MsgOutput {

    @NoteField(value = "个人任务数据", detail = "☺")
    public RoleTask data;

    public TaskDataResp(){

    }

    public TaskDataResp(Role role) {
        this.data = role.getTask();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTask.DATA_RESP;
    }
}
